import axios from 'axios';

const service = axios.create({
  baseURL: '/form-design',
  timeout: 0,
});

service.interceptors.response.use((response) => {
  return response.data
}, () => {})

export function postAction(url, parameter) {
  return service({
    url: url,
    method: 'post',
    data: parameter
  });
}

export function getAction(url,parameter) {
  return service({
    url: url,
    method: 'get',
    params: parameter
  })
}